﻿@{
    var id = ViewBag.Id;
    var topBarId = id + "-top-bar";
    var bottomBarId = id + "-bottom-bar";
    var refreshbuttonId = "refresh-button-" + id;
    var deleteId = "delete-button-" + id;
    var writeNewId = "write-button-" + id;
    var tabcontentId = id + "-tab-content";
}
<div class="row">
    <button type="button" class="btn btn-default" data-toggle="tooltip" title="Refresh" id="@refreshbuttonId">
        <span class="glyphicon glyphicon-refresh"></span>
    </button>
    <button type="button" class="btn btn-default" id="@deleteId">Удалить</button>
    <button type="button" class="btn btn-default" id="@writeNewId">Написать</button>
    @Html.Partial("_PageButtons", new { Id = topBarId })
</div>
<br />
<div id="@tabcontentId"></div>
<div class="row">
    @Html.Partial("_PageButtons", new { Id = bottomBarId })
</div>
<br />